tail wagging the dog

Translations
хвост виляет собакой
In this company, the tail is wagging the dog, with junior staff making all the decisions.
В этой компании хвост виляет собакой, младший персонал принимает все решения.
Definitions
A situation where a minor or secondary part of something is controlling or influencing the whole, often in a way that is inappropriate or illogical.